package com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile;

public class PedigreeImpl implements Pedigree {

	private String sireName;
	private String sireSireName;
	private String damName;
	private String damSireName;
	private String breeder;
	private String stateCountryBred;
	private String dirtPedigreeRating;
	private String mudPedigreeRating;
	private String turfPedigreeRating;
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getSireName()
	 */
	public String getSireName() {
		return sireName;
	}
	public void setSireName(String sireName) {
		this.sireName = sireName;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getSireSireName()
	 */
	public String getSireSireName() {
		return sireSireName;
	}
	public void setSireSireName(String sireSireName) {
		this.sireSireName = sireSireName;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getDamName()
	 */
	public String getDamName() {
		return damName;
	}
	public void setDamName(String damName) {
		this.damName = damName;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getDamSireName()
	 */
	public String getDamSireName() {
		return damSireName;
	}
	public void setDamSireName(String damSireName) {
		this.damSireName = damSireName;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getBreeder()
	 */
	public String getBreeder() {
		return breeder;
	}
	public void setBreeder(String breeder) {
		this.breeder = breeder;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getStateCountryBred()
	 */
	public String getStateCountryBred() {
		return stateCountryBred;
	}
	public void setStateCountryBred(String stateCountryBred) {
		this.stateCountryBred = stateCountryBred;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getDirtPedigreeRating()
	 */
	public String getDirtPedigreeRating() {
		return dirtPedigreeRating;
	}
	public void setDirtPedigreeRating(String dirtPedigreeRating) {
		this.dirtPedigreeRating = dirtPedigreeRating;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getMudPedigreeRating()
	 */
	public String getMudPedigreeRating() {
		return mudPedigreeRating;
	}
	public void setMudPedigreeRating(String mudPedigreeRating) {
		this.mudPedigreeRating = mudPedigreeRating;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.Pedigree#getTurfPedigreeRating()
	 */
	public String getTurfPedigreeRating() {
		return turfPedigreeRating;
	}
	public void setTurfPedigreeRating(String turfPedigreeRating) {
		this.turfPedigreeRating = turfPedigreeRating;
	}

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PedigreeImpl pedigree = (PedigreeImpl) o;

        if (breeder != null ? !breeder.equals(pedigree.breeder) : pedigree.breeder != null) return false;
        if (damName != null ? !damName.equals(pedigree.damName) : pedigree.damName != null) return false;
        if (damSireName != null ? !damSireName.equals(pedigree.damSireName) : pedigree.damSireName != null)
            return false;
        if (dirtPedigreeRating != null ? !dirtPedigreeRating.equals(pedigree.dirtPedigreeRating) : pedigree.dirtPedigreeRating != null)
            return false;
        if (mudPedigreeRating != null ? !mudPedigreeRating.equals(pedigree.mudPedigreeRating) : pedigree.mudPedigreeRating != null)
            return false;
        if (sireName != null ? !sireName.equals(pedigree.sireName) : pedigree.sireName != null) return false;
        if (sireSireName != null ? !sireSireName.equals(pedigree.sireSireName) : pedigree.sireSireName != null)
            return false;
        if (stateCountryBred != null ? !stateCountryBred.equals(pedigree.stateCountryBred) : pedigree.stateCountryBred != null)
            return false;
        if (turfPedigreeRating != null ? !turfPedigreeRating.equals(pedigree.turfPedigreeRating) : pedigree.turfPedigreeRating != null)
            return false;

        return true;
    }

    public int hashCode() {
        int result;
        result = (sireName != null ? sireName.hashCode() : 0);
        result = 31 * result + (sireSireName != null ? sireSireName.hashCode() : 0);
        result = 31 * result + (damName != null ? damName.hashCode() : 0);
        result = 31 * result + (damSireName != null ? damSireName.hashCode() : 0);
        result = 31 * result + (breeder != null ? breeder.hashCode() : 0);
        result = 31 * result + (stateCountryBred != null ? stateCountryBred.hashCode() : 0);
        result = 31 * result + (dirtPedigreeRating != null ? dirtPedigreeRating.hashCode() : 0);
        result = 31 * result + (mudPedigreeRating != null ? mudPedigreeRating.hashCode() : 0);
        result = 31 * result + (turfPedigreeRating != null ? turfPedigreeRating.hashCode() : 0);
        return result;
    }
}
